Skip to content

[DP-470] 북마크 공고 목록 매칭순 정렬 추가#166

Merged
github-actions[bot] merged 1 commit into
developV2from
auto/feature/DP-470-bookmark-match-sort
May 10, 2026
Merged

[DP-470] 북마크 공고 목록 매칭순 정렬 추가#166
github-actions[bot] merged 1 commit into
developV2from
auto/feature/DP-470-bookmark-match-sort

Conversation

@nYeonG4001
Copy link
Copy Markdown
Collaborator

요약

  • GET /users/me/bookmarks?sort=match 파라미터 지원 추가
  • 기존 sort=newest (기본값) / sort=oldest 동작 유지
  • 응답 구조 변경 없음

구현 방식

matchScore는 DB 컬럼이 아닌 인메모리 계산값(JobMatchingCalculator)이므로, DB ORDER BY 불가.
→ 전체 북마크를 Pageable.unpaged()로 로드 후 메모리 정렬(matchScore 내림차순) → 수동 페이징

변경 파일

  • JobBookmarkController: sort=match 분기 처리, sortType 서비스 전달
  • JobService: getBookmarkedJobs(sortType) 파라미터 추가, getBookmarkedJobsSortedByMatch() 추가
  • JobBookmarkControllerTest / JobBookmarkServiceTest: 시그니처 업데이트 + 매칭순 테스트 추가

테스트

  • 빌드 + 전체 테스트 통과
  • 신규 코드 커버리지 확인 (fc 위주, 주요 분기 모두 커버)
  • PR 전 developV2 최신화 및 충돌 없음 확인

@github-actions github-actions Bot merged commit d4d6d3f into developV2 May 10, 2026
2 checks passed
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant